-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: implemente Msgs for SP exit #534
Conversation
e0f9672
to
a271740
Compare
a271740
to
0f55d6d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix conflicts
576bc8a
to
1c66afe
Compare
app/upgrade.go
Outdated
|
||
// enable bucket migration |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don't enable Bucket migration
in this release, let's leave it to the next version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
disabled
42aebfa
to
07bb64f
Compare
…d related bank account
07bb64f
to
b0c9b53
Compare
c64b019
to
28c6e32
Compare
4893e46
to
0b4d1f0
Compare
Description
This PR adds required msg for SP exit.
SP graceful exit process:
MsgStorageProviderExit
, it is status will becomeSTATUS_GRACEFUL_EXITING
MsgReserveSwapIn
to reserve the position.MsgCompleteSwapIn
to ack the success, within GVGF/GVG, SP replacement will take place.MsgCompleteStorageProviderExit
to complete such SP's exit, deposit onto Greenfield will be refund to the exit SP.SP forced exit process:
A uncooperative SP refuses to provide service will be put into
STATUS_FORCED_EXITING
executingMsgStorageProviderForceExit
via governance. Other SP would do the same as above step 2-3. Eventually,If the SP has no more GVGF/GVG related, anyone can send a tx with
MsgCompleteStorageProviderExit
to complete such SP's exit, deposit onto Greenfield will be transfer to payment module account.Modification to current Msgs:
MsgCompleteStorageProviderExit
. Anyone can trigger the tx for a graceful_exit or forced_exit SP to complete the exit process. Previous deposit onto Greenfield will be refund to the exit SP or transferred to gov module.MsgUpdateBucketInfo
. When a SP is inSTATUS_GRACEFUL_EXITING
orSTATUS_FORCED_EXITING
, buckets it served will not be allowed to update(quota).MsgDiscontinueObject
. A successor primary SP can discontinue objects that the exititng SP serves.Rationale
Example
add an example CLI or API response...
Changes
Notable changes:
Potential Impacts